package com.model;

/**
 * Ams_bis_info_dataId entity. @author MyEclipse Persistence Tools
 */

public class Ams_bis_info_dataId implements java.io.Serializable {

	// Fields

	private String toolg_id;
	private String almg_id;
	private String info_typ;
	private String info_data;

	// Constructors

	/** default constructor */
	public Ams_bis_info_dataId() {
	}

	/** full constructor */
	public Ams_bis_info_dataId(String toolg_id, String almg_id,
			String info_typ, String info_data) {
		this.toolg_id = toolg_id;
		this.almg_id = almg_id;
		this.info_typ = info_typ;
		this.info_data = info_data;
	}

	// Property accessors

	public String getToolg_id() {
		return this.toolg_id;
	}

	public void setToolg_id(String toolg_id) {
		this.toolg_id = toolg_id;
	}

	public String getAlmg_id() {
		return this.almg_id;
	}

	public void setAlmg_id(String almg_id) {
		this.almg_id = almg_id;
	}

	public String getInfo_typ() {
		return this.info_typ;
	}

	public void setInfo_typ(String info_typ) {
		this.info_typ = info_typ;
	}

	public String getInfo_data() {
		return this.info_data;
	}

	public void setInfo_data(String info_data) {
		this.info_data = info_data;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Ams_bis_info_dataId))
			return false;
		Ams_bis_info_dataId castOther = (Ams_bis_info_dataId) other;

		return ((this.getToolg_id() == castOther.getToolg_id()) || (this
				.getToolg_id() != null && castOther.getToolg_id() != null && this
				.getToolg_id().equals(castOther.getToolg_id())))
				&& ((this.getAlmg_id() == castOther.getAlmg_id()) || (this
						.getAlmg_id() != null && castOther.getAlmg_id() != null && this
						.getAlmg_id().equals(castOther.getAlmg_id())))
				&& ((this.getInfo_typ() == castOther.getInfo_typ()) || (this
						.getInfo_typ() != null
						&& castOther.getInfo_typ() != null && this
						.getInfo_typ().equals(castOther.getInfo_typ())))
				&& ((this.getInfo_data() == castOther.getInfo_data()) || (this
						.getInfo_data() != null
						&& castOther.getInfo_data() != null && this
						.getInfo_data().equals(castOther.getInfo_data())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getToolg_id() == null ? 0 : this.getToolg_id().hashCode());
		result = 37 * result
				+ (getAlmg_id() == null ? 0 : this.getAlmg_id().hashCode());
		result = 37 * result
				+ (getInfo_typ() == null ? 0 : this.getInfo_typ().hashCode());
		result = 37 * result
				+ (getInfo_data() == null ? 0 : this.getInfo_data().hashCode());
		return result;
	}

}